/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.srcptit.trainning.giangnd.b2;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

/**
 *
 * @author GIANG
 */
public class buffered {
    public static void main(String[] args) throws IOException {
        BufferedWriter bf=new BufferedWriter(new FileWriter("A.txt"));
        bf.newLine();//tao ra dong moi
        bf.close();//dong file
        BufferedReader br=new BufferedReader(new FileReader("A.txt"));
        br.ready();//trong file co noi dung khong co tra ve failse;
        
    }
}
